package hl.model;
// Generated 2018-4-15 22:16:44 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TMemberPhysical generated by hbm2java
 */
@Entity
@Table(name = "t_member_physical", catalog = "matcha_gym")
public class TMemberPhysical implements java.io.Serializable {

	private Long pkMemberPhysical;
	private TMember TMember;
	private Date generateDateime;
	private Integer height;
	private Integer weight;
	private String bodyFatRate;
	private String bmi;

	public TMemberPhysical() {
	}

	public TMemberPhysical(TMember TMember) {
		this.TMember = TMember;
	}

	public TMemberPhysical(TMember TMember, Date generateDateime, Integer height, Integer weight, String bodyFatRate, String bmi) {
		this.TMember = TMember;
		this.generateDateime = generateDateime;
		this.height = height;
		this.weight = weight;
		this.bodyFatRate = bodyFatRate;
		this.bmi = bmi;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_MEMBER_PHYSICAL", unique = true, nullable = false)
	public Long getPkMemberPhysical() {
		return this.pkMemberPhysical;
	}

	public void setPkMemberPhysical(Long pkMemberPhysical) {
		this.pkMemberPhysical = pkMemberPhysical;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_MEMBER", nullable = false)
	public TMember getTMember() {
		return this.TMember;
	}

	public void setTMember(TMember TMember) {
		this.TMember = TMember;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GENERATE_DATEIME", length = 19)
	public Date getGenerateDateime() {
		return this.generateDateime;
	}

	public void setGenerateDateime(Date generateDateime) {
		this.generateDateime = generateDateime;
	}

	@Column(name = "HEIGHT")
	public Integer getHeight() {
		return this.height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	@Column(name = "WEIGHT")
	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Column(name = "BODY_FAT_RATE", length = 5)
	public String getBodyFatRate() {
		return this.bodyFatRate;
	}

	public void setBodyFatRate(String bodyFatRate) {
		this.bodyFatRate = bodyFatRate;
	}

	@Column(name = "BMI", length = 5)
	public String getBmi() {
		return this.bmi;
	}

	public void setBmi(String bmi) {
		this.bmi = bmi;
	}

}
